<?php
/* @var $this TasklogController */
/* @var $model Tasklog */

$this->breadcrumbs=array(
	'Tasklogs'=>array('index'),
	'Manage',
);

$this->menu=array(

);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#tasklog-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Tasklogs</h1>
成功送达<?php echo $sendok?>条信息,未送达<?php echo $sendnot?>条。

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'tasklog-grid',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		array(
		'name'=>'id',
		'value'=>'substr($data->appleid,0,4)."****".substr($data->appleid,8)',
		'type'=>'raw'
		),  
		array(
		'name'=>'stat',
		'value'=>'($data->stat == 2 ?"送达":"未送达")',
		'type'=>'raw'
		),  
		'starttime',
		
	),
)); ?>
